<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="../css/member_global.css?t={ctime}" rel="stylesheet" type="text/css" />
<link href="../css/member_main_lot_all.css?t={ctime}" rel="stylesheet" type="text/css">
<link href="../css/member_main_lot_b{LottoID}.css?t={ctime}" rel="stylesheet" type="text/css">
<title>Lotto</title>
<script language="JavaScript">
<!--
function CheckChoice(){
	var intChBox = 0, j = 0, i = 0, objChBox, intBT = 31;
	var intMaxSd = 0, isFull = 0, intNum = 0;
	var intMaxSd = 5;

	with(document.SAFrm){
		for(intNum = 1; intNum <= 49; intNum++){
			objChBox = document.SAFrm["ChoiceNumber["+intBT+"]["+intNum.toString()+"]"];
			objChBox.disabled = false;
		}


		for(intNum = 1; intNum <= 49; intNum++){
			objChBox = document.SAFrm["ChoiceNumber["+intBT.toString()+"]["+intNum.toString()+"]"];
			objChBox.disabled = false;
			ChangeClass(intNum,  intBT, 0);
			if(objChBox.checked){
				intChBox++;
				ChangeClass(intNum, intBT, 0);
			}
			if(intChBox == intMaxSd)break;
		}

		if(intChBox == intMaxSd){
			for(intNum = 1; intNum <= 49; intNum++){
				objChBox = document.SAFrm["ChoiceNumber["+intBT.toString()+"]["+intNum.toString()+"]"];
				if(objChBox.checked == false)objChBox.disabled = true;
			}
			isFull++;
		}

		BSubmit.disabled = (isFull == 1 && intBT != 0)?false:true;//intChBox >= 5
	}
}

function ChangeClass(intNum, intType, isOver){
	if(isOver == 1){
		document.getElementById("NumOdds"+intNum.toString()).style.backgroundColor = '#CCFFCC';
	}else{
		if(document.SAFrm["ChoiceNumber["+intType+"]["+intNum+"]"].checked == false)document.getElementById("NumOdds"+intNum.toString()).style.backgroundColor = '#FFFFFF';
	}
}

function SplitParam(){
	var strParam = "", arrParam = new Array(), i = 0, intBT = 31, intOddsID = 0, flOdds = 999999, intNum = 0, intSNum = -1;

	with(document.SAFrm){
		for(intNum = 1; intNum <= 49; intNum++){
			objChBox = document.SAFrm["ChoiceNumber["+intBT.toString()+"]["+intNum.toString()+"]"];
			if(objChBox.checked == true){
				arrParam = objChBox.value.split("#");
				if(flOdds > arrParam[1]){
					intOddsID = arrParam[0];
					flOdds = arrParam[1];
					intSNum = intNum;
				}
			}
		}
		Number.value = intSNum;
		OddsID.value = intOddsID;
		Odds.value = flOdds;
	}
	return true;
}
//-->
</script>
</head>

<body oncontextmenu="window.event.returnValue=false" ondragstart="window.event.returnValue=false" onselectstart="event.returnValue=false">

<form action="wager_common.php" name="SAFrm" target="leftFrame" method="post" onreset="setTimeout('CheckChoice()', 500);" onsubmit="SplitParam();">
<input type="hidden" name="UserID" value="{UserID}">
<input type="hidden" name="GambleID" value="{GambleID}">
<input type="hidden" name="LottoID" value="{LottoID}">
<input type="hidden" name="sid" value="{sid}">
<input type="hidden" name="OddsID" value="">
<input type="hidden" name="Odds" value="">
<input type="hidden" name="Number" value="0">
<input type="hidden" name="Bet_Type" value="31">

<!--樣式2-->
<div class="topStyle_2">
<table class="mtop" width="725" border="0" cellspacing="0" cellpadding="0">
<tr>
	<td align="center"><table width="100%" border="0" cellpadding="0" cellspacing="0">
		<tr>
			<td align="center" class="menu_title">{Title}</td>
			<td align="right" valign="top" class="mictxt">{Periods}<em id="GameNo">{SerialNo}</em>({OpeningDate}{ShowGameDate}&nbsp;{ShowGameTime})
			</td>
		</tr>
		</table>
	</td>
</tr>
<tr class="menu_tab">
	<td nowrap="nowrap" class="menu_tab" >&nbsp;</td>
</tr>
</table>
</div>
<!--共用樣式-->

<table width="725" border="0" cellpadding="0" cellspacing="0" class="mbtab_ont">
  <tr class="mbtitle">
    <td>{NumberTitle}</td>
    <td>{OddsTitle}</td>
    <td>{ChoiceTitle}</td>
    <td>{NumberTitle}</td>
    <td>{OddsTitle}</td>
    <td>{ChoiceTitle}</td>
    <td>{NumberTitle}</td>
    <td>{OddsTitle}</td>
    <td>{ChoiceTitle}</td>
    <td>{NumberTitle}</td>
    <td>{OddsTitle}</td>
    <td>{ChoiceTitle}</td>
    <td>{NumberTitle}</td>
    <td>{OddsTitle}</td>
    <td>{ChoiceTitle}</td>
  </tr>
<!-- bof: OddsContent //-->
<tr class='mcen'><th style='color:red'>01</th>
<td class='mbline_ratio'>1.5</td>
<td class='mbline' id='NumOdds1' onmouseover='ChangeClass(1, 31, 1)' onmouseout='ChangeClass(1, 31, 0)' onclick='CheckChoice()'><input type='checkbox' name='ChoiceNumber[31][1]' value='919429#1.5'></td>
<th style='color:green'>11</th>
<td class='mbline_ratio'>2</td>
<td class='mbline' id='NumOdds11' onmouseover='ChangeClass(11, 31, 1)' onmouseout='ChangeClass(11, 31, 0)' onclick='CheckChoice()'><input type='checkbox' name='ChoiceNumber[31][11]' value='919233#2'></td>
<th style='color:green'>21</th>
<td class='mbline_ratio'>2</td>
<td class='mbline' id='NumOdds21' onmouseover='ChangeClass(21, 31, 1)' onmouseout='ChangeClass(21, 31, 0)' onclick='CheckChoice()'><input type='checkbox' name='ChoiceNumber[31][21]' value='919243#2'></td>
<th style='color:blue'>31</th>
<td class='mbline_ratio'>2</td>
<td class='mbline' id='NumOdds31' onmouseover='ChangeClass(31, 31, 1)' onmouseout='ChangeClass(31, 31, 0)' onclick='CheckChoice()'><input type='checkbox' name='ChoiceNumber[31][31]' value='919253#2'></td>
<th style='color:blue'>41</th>
<td class='mbline_ratio'>2</td>
<td class='mbline' id='NumOdds41' onmouseover='ChangeClass(41, 31, 1)' onmouseout='ChangeClass(41, 31, 0)' onclick='CheckChoice()'><input type='checkbox' name='ChoiceNumber[31][41]' value='919263#2'></td>
</tr><tr class='mcen'><th style='color:red'>02</th>
<td class='mbline_ratio'>1.5</td>
<td class='mbline' id='NumOdds2' onmouseover='ChangeClass(2, 31, 1)' onmouseout='ChangeClass(2, 31, 0)' onclick='CheckChoice()'><input type='checkbox' name='ChoiceNumber[31][2]' value='919430#1.5'></td>
<th style='color:red'>12</th>
<td class='mbline_ratio'>1.5</td>
<td class='mbline' id='NumOdds12' onmouseover='ChangeClass(12, 31, 1)' onmouseout='ChangeClass(12, 31, 0)' onclick='CheckChoice()'><input type='checkbox' name='ChoiceNumber[31][12]' value='919433#1.5'></td>
<th style='color:green'>22</th>
<td class='mbline_ratio'>2</td>
<td class='mbline' id='NumOdds22' onmouseover='ChangeClass(22, 31, 1)' onmouseout='ChangeClass(22, 31, 0)' onclick='CheckChoice()'><input type='checkbox' name='ChoiceNumber[31][22]' value='919244#2'></td>
<th style='color:green'>32</th>
<td class='mbline_ratio'>2</td>
<td class='mbline' id='NumOdds32' onmouseover='ChangeClass(32, 31, 1)' onmouseout='ChangeClass(32, 31, 0)' onclick='CheckChoice()'><input type='checkbox' name='ChoiceNumber[31][32]' value='919254#2'></td>
<th style='color:blue'>42</th>
<td class='mbline_ratio'>2</td>
<td class='mbline' id='NumOdds42' onmouseover='ChangeClass(42, 31, 1)' onmouseout='ChangeClass(42, 31, 0)' onclick='CheckChoice()'><input type='checkbox' name='ChoiceNumber[31][42]' value='919264#2'></td>
</tr><tr class='mcen'><th style='color:blue'>03</th>
<td class='mbline_ratio'>2</td>
<td class='mbline' id='NumOdds3' onmouseover='ChangeClass(3, 31, 1)' onmouseout='ChangeClass(3, 31, 0)' onclick='CheckChoice()'><input type='checkbox' name='ChoiceNumber[31][3]' value='919225#2'></td>
<th style='color:red'>13</th>
<td class='mbline_ratio'>1.5</td>
<td class='mbline' id='NumOdds13' onmouseover='ChangeClass(13, 31, 1)' onmouseout='ChangeClass(13, 31, 0)' onclick='CheckChoice()'><input type='checkbox' name='ChoiceNumber[31][13]' value='919434#1.5'></td>
<th style='color:red'>23</th>
<td class='mbline_ratio'>1.5</td>
<td class='mbline' id='NumOdds23' onmouseover='ChangeClass(23, 31, 1)' onmouseout='ChangeClass(23, 31, 0)' onclick='CheckChoice()'><input type='checkbox' name='ChoiceNumber[31][23]' value='919437#1.5'></td>
<th style='color:green'>33</th>
<td class='mbline_ratio'>2</td>
<td class='mbline' id='NumOdds33' onmouseover='ChangeClass(33, 31, 1)' onmouseout='ChangeClass(33, 31, 0)' onclick='CheckChoice()'><input type='checkbox' name='ChoiceNumber[31][33]' value='919255#2'></td>
<th style='color:green'>43</th>
<td class='mbline_ratio'>2</td>
<td class='mbline' id='NumOdds43' onmouseover='ChangeClass(43, 31, 1)' onmouseout='ChangeClass(43, 31, 0)' onclick='CheckChoice()'><input type='checkbox' name='ChoiceNumber[31][43]' value='919265#2'></td>
</tr><tr class='mcen'><th style='color:blue'>04</th>
<td class='mbline_ratio'>2</td>
<td class='mbline' id='NumOdds4' onmouseover='ChangeClass(4, 31, 1)' onmouseout='ChangeClass(4, 31, 0)' onclick='CheckChoice()'><input type='checkbox' name='ChoiceNumber[31][4]' value='919226#2'></td>
<th style='color:blue'>14</th>
<td class='mbline_ratio'>2</td>
<td class='mbline' id='NumOdds14' onmouseover='ChangeClass(14, 31, 1)' onmouseout='ChangeClass(14, 31, 0)' onclick='CheckChoice()'><input type='checkbox' name='ChoiceNumber[31][14]' value='919236#2'></td>
<th style='color:red'>24</th>
<td class='mbline_ratio'>1.5</td>
<td class='mbline' id='NumOdds24' onmouseover='ChangeClass(24, 31, 1)' onmouseout='ChangeClass(24, 31, 0)' onclick='CheckChoice()'><input type='checkbox' name='ChoiceNumber[31][24]' value='919438#1.5'></td>
<th style='color:red'>34</th>
<td class='mbline_ratio'>1.5</td>
<td class='mbline' id='NumOdds34' onmouseover='ChangeClass(34, 31, 1)' onmouseout='ChangeClass(34, 31, 0)' onclick='CheckChoice()'><input type='checkbox' name='ChoiceNumber[31][34]' value='919441#1.5'></td>
<th style='color:green'>44</th>
<td class='mbline_ratio'>2</td>
<td class='mbline' id='NumOdds44' onmouseover='ChangeClass(44, 31, 1)' onmouseout='ChangeClass(44, 31, 0)' onclick='CheckChoice()'><input type='checkbox' name='ChoiceNumber[31][44]' value='919266#2'></td>
</tr><tr class='mcen'><th style='color:green'>05</th>
<td class='mbline_ratio'>2</td>
<td class='mbline' id='NumOdds5' onmouseover='ChangeClass(5, 31, 1)' onmouseout='ChangeClass(5, 31, 0)' onclick='CheckChoice()'><input type='checkbox' name='ChoiceNumber[31][5]' value='919227#2'></td>
<th style='color:blue'>15</th>
<td class='mbline_ratio'>2</td>
<td class='mbline' id='NumOdds15' onmouseover='ChangeClass(15, 31, 1)' onmouseout='ChangeClass(15, 31, 0)' onclick='CheckChoice()'><input type='checkbox' name='ChoiceNumber[31][15]' value='919237#2'></td>
<th style='color:blue'>25</th>
<td class='mbline_ratio'>2</td>
<td class='mbline' id='NumOdds25' onmouseover='ChangeClass(25, 31, 1)' onmouseout='ChangeClass(25, 31, 0)' onclick='CheckChoice()'><input type='checkbox' name='ChoiceNumber[31][25]' value='919247#2'></td>
<th style='color:red'>35</th>
<td class='mbline_ratio'>1.5</td>
<td class='mbline' id='NumOdds35' onmouseover='ChangeClass(35, 31, 1)' onmouseout='ChangeClass(35, 31, 0)' onclick='CheckChoice()'><input type='checkbox' name='ChoiceNumber[31][35]' value='919442#1.5'></td>
<th style='color:red'>45</th>
<td class='mbline_ratio'>1.5</td>
<td class='mbline' id='NumOdds45' onmouseover='ChangeClass(45, 31, 1)' onmouseout='ChangeClass(45, 31, 0)' onclick='CheckChoice()'><input type='checkbox' name='ChoiceNumber[31][45]' value='919444#1.5'></td>
</tr><tr class='mcen'><th style='color:green'>06</th>
<td class='mbline_ratio'>2</td>
<td class='mbline' id='NumOdds6' onmouseover='ChangeClass(6, 31, 1)' onmouseout='ChangeClass(6, 31, 0)' onclick='CheckChoice()'><input type='checkbox' name='ChoiceNumber[31][6]' value='919228#2'></td>
<th style='color:green'>16</th>
<td class='mbline_ratio'>2</td>
<td class='mbline' id='NumOdds16' onmouseover='ChangeClass(16, 31, 1)' onmouseout='ChangeClass(16, 31, 0)' onclick='CheckChoice()'><input type='checkbox' name='ChoiceNumber[31][16]' value='919238#2'></td>
<th style='color:blue'>26</th>
<td class='mbline_ratio'>2</td>
<td class='mbline' id='NumOdds26' onmouseover='ChangeClass(26, 31, 1)' onmouseout='ChangeClass(26, 31, 0)' onclick='CheckChoice()'><input type='checkbox' name='ChoiceNumber[31][26]' value='919248#2'></td>
<th style='color:blue'>36</th>
<td class='mbline_ratio'>2</td>
<td class='mbline' id='NumOdds36' onmouseover='ChangeClass(36, 31, 1)' onmouseout='ChangeClass(36, 31, 0)' onclick='CheckChoice()'><input type='checkbox' name='ChoiceNumber[31][36]' value='919258#2'></td>
<th style='color:red'>46</th>
<td class='mbline_ratio'>1.5</td>
<td class='mbline' id='NumOdds46' onmouseover='ChangeClass(46, 31, 1)' onmouseout='ChangeClass(46, 31, 0)' onclick='CheckChoice()'><input type='checkbox' name='ChoiceNumber[31][46]' value='919445#1.5'></td>
</tr><tr class='mcen'><th style='color:red'>07</th>
<td class='mbline_ratio'>1.5</td>
<td class='mbline' id='NumOdds7' onmouseover='ChangeClass(7, 31, 1)' onmouseout='ChangeClass(7, 31, 0)' onclick='CheckChoice()'><input type='checkbox' name='ChoiceNumber[31][7]' value='919431#1.5'></td>
<th style='color:green'>17</th>
<td class='mbline_ratio'>2</td>
<td class='mbline' id='NumOdds17' onmouseover='ChangeClass(17, 31, 1)' onmouseout='ChangeClass(17, 31, 0)' onclick='CheckChoice()'><input type='checkbox' name='ChoiceNumber[31][17]' value='919239#2'></td>
<th style='color:green'>27</th>
<td class='mbline_ratio'>2</td>
<td class='mbline' id='NumOdds27' onmouseover='ChangeClass(27, 31, 1)' onmouseout='ChangeClass(27, 31, 0)' onclick='CheckChoice()'><input type='checkbox' name='ChoiceNumber[31][27]' value='919249#2'></td>
<th style='color:blue'>37</th>
<td class='mbline_ratio'>2</td>
<td class='mbline' id='NumOdds37' onmouseover='ChangeClass(37, 31, 1)' onmouseout='ChangeClass(37, 31, 0)' onclick='CheckChoice()'><input type='checkbox' name='ChoiceNumber[31][37]' value='919259#2'></td>
<th style='color:blue'>47</th>
<td class='mbline_ratio'>2</td>
<td class='mbline' id='NumOdds47' onmouseover='ChangeClass(47, 31, 1)' onmouseout='ChangeClass(47, 31, 0)' onclick='CheckChoice()'><input type='checkbox' name='ChoiceNumber[31][47]' value='919269#2'></td>
</tr><tr class='mcen'><th style='color:red'>08</th>
<td class='mbline_ratio'>1.5</td>
<td class='mbline' id='NumOdds8' onmouseover='ChangeClass(8, 31, 1)' onmouseout='ChangeClass(8, 31, 0)' onclick='CheckChoice()'><input type='checkbox' name='ChoiceNumber[31][8]' value='919432#1.5'></td>
<th style='color:red'>18</th>
<td class='mbline_ratio'>1.5</td>
<td class='mbline' id='NumOdds18' onmouseover='ChangeClass(18, 31, 1)' onmouseout='ChangeClass(18, 31, 0)' onclick='CheckChoice()'><input type='checkbox' name='ChoiceNumber[31][18]' value='919435#1.5'></td>
<th style='color:green'>28</th>
<td class='mbline_ratio'>1.5</td>
<td class='mbline' id='NumOdds28' onmouseover='ChangeClass(28, 31, 1)' onmouseout='ChangeClass(28, 31, 0)' onclick='CheckChoice()'><input type='checkbox' name='ChoiceNumber[31][28]' value='919411#1.5'></td>
<th style='color:green'>38</th>
<td class='mbline_ratio'>2</td>
<td class='mbline' id='NumOdds38' onmouseover='ChangeClass(38, 31, 1)' onmouseout='ChangeClass(38, 31, 0)' onclick='CheckChoice()'><input type='checkbox' name='ChoiceNumber[31][38]' value='919260#2'></td>
<th style='color:blue'>48</th>
<td class='mbline_ratio'>2</td>
<td class='mbline' id='NumOdds48' onmouseover='ChangeClass(48, 31, 1)' onmouseout='ChangeClass(48, 31, 0)' onclick='CheckChoice()'><input type='checkbox' name='ChoiceNumber[31][48]' value='919270#2'></td>
</tr><tr class='mcen'><th style='color:blue'>09</th>
<td class='mbline_ratio'>2</td>
<td class='mbline' id='NumOdds9' onmouseover='ChangeClass(9, 31, 1)' onmouseout='ChangeClass(9, 31, 0)' onclick='CheckChoice()'><input type='checkbox' name='ChoiceNumber[31][9]' value='919231#2'></td>
<th style='color:red'>19</th>
<td class='mbline_ratio'>1.5</td>
<td class='mbline' id='NumOdds19' onmouseover='ChangeClass(19, 31, 1)' onmouseout='ChangeClass(19, 31, 0)' onclick='CheckChoice()'><input type='checkbox' name='ChoiceNumber[31][19]' value='919436#1.5'></td>
<th style='color:red'>29</th>
<td class='mbline_ratio'>1.5</td>
<td class='mbline' id='NumOdds29' onmouseover='ChangeClass(29, 31, 1)' onmouseout='ChangeClass(29, 31, 0)' onclick='CheckChoice()'><input type='checkbox' name='ChoiceNumber[31][29]' value='919439#1.5'></td>
<th style='color:green'>39</th>
<td class='mbline_ratio'>2</td>
<td class='mbline' id='NumOdds39' onmouseover='ChangeClass(39, 31, 1)' onmouseout='ChangeClass(39, 31, 0)' onclick='CheckChoice()'><input type='checkbox' name='ChoiceNumber[31][39]' value='919261#2'></td>
<th style='color:green'>49</th>
<td class='mbline_ratio'>2</td>
<td class='mbline' id='NumOdds49' onmouseover='ChangeClass(49, 31, 1)' onmouseout='ChangeClass(49, 31, 0)' onclick='CheckChoice()'><input type='checkbox' name='ChoiceNumber[31][49]' value='919271#2'></td>
</tr><tr class='mcen'><th style='color:blue'>10</th>
<td class='mbline_ratio'>2</td>
<td class='mbline' id='NumOdds10' onmouseover='ChangeClass(10, 31, 1)' onmouseout='ChangeClass(10, 31, 0)' onclick='CheckChoice()'><input type='checkbox' name='ChoiceNumber[31][10]' value='919232#2'></td>
<th style='color:blue'>20</th>
<td class='mbline_ratio'>2</td>
<td class='mbline' id='NumOdds20' onmouseover='ChangeClass(20, 31, 1)' onmouseout='ChangeClass(20, 31, 0)' onclick='CheckChoice()'><input type='checkbox' name='ChoiceNumber[31][20]' value='919242#2'></td>
<th style='color:red'>30</th>
<td class='mbline_ratio'>1.5</td>
<td class='mbline' id='NumOdds30' onmouseover='ChangeClass(30, 31, 1)' onmouseout='ChangeClass(30, 31, 0)' onclick='CheckChoice()'><input type='checkbox' name='ChoiceNumber[31][30]' value='919440#1.5'></td>
<th style='color:red'>40</th>
<td class='mbline_ratio'>1.5</td>
<td class='mbline' id='NumOdds40' onmouseover='ChangeClass(40, 31, 1)' onmouseout='ChangeClass(40, 31, 0)' onclick='CheckChoice()'><input type='checkbox' name='ChoiceNumber[31][40]' value='919443#1.5'></td>
<td colspan='3' class='mbline'>
<input name='BSubmit' type='submit' class='zabottonR' value='下注' disabled>
<input type='reset' class='zabotton' value='取消'>
</td>
</tr>
<!-- eof: OddsContent //-->
</table>

</form>
</body>
</html>